package com.hlf.modules.sys.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import java.io.Serializable;

/**
 * 文件实体类
 * 
 * 
 * @author shuliangxing
 *
 */
public class FileVO implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long filId;

    /**
     * 服务器存储路径
     */
    private String filSerPath;

    /**
     * 文件类型,如:AD_IMG:广告图片;多张或有可能多张图片的情况采用此方式,像一般一对一的图片(如:头像)采用主外键关联的方式
     */
    private String filType;

    /**
     * 对应外键表的id
     */
    private Long foreignId;


    public Long getFilId() {
        return filId;
    }

    public void setFilId(Long filId) {
        this.filId = filId;
    }


    public String getFilSerPath() {
        return filSerPath;
    }

    public void setFilSerPath(String filSerPath) {
        this.filSerPath = filSerPath == null ? null : filSerPath.trim();
    }

    public String getFilType() {
        return filType;
    }

    public void setFilType(String filType) {
        this.filType = filType == null ? null : filType.trim();
    }


    public Long getForeignId() {
        return foreignId;
    }

    public void setForeignId(Long foreignId) {
        this.foreignId = foreignId;
    }

    @Override
    public String toString() {
        return "FileVO{" +
                "filId=" + filId +
                ", filSerPath='" + filSerPath + '\'' +
                ", filType='" + filType + '\'' +
                ", foreignId=" + foreignId +
                '}';
    }
}